/*
 * Copyright (C) 2016 yixun All Rights Reserved.
 * 
 * SignedDto.java
 */
package com.emm.yixun.common.model.dto;

import java.math.BigDecimal;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;

import com.emm.yixun.common.model.Signed;

/**
 * [文件名称]<br>
 * SignedDto.java<br>
 * <br>
 * [文件描述]<br>
 * 客户签约表 数据辅助类<br>
 * <br>
 * [修改记录]<br>
 * 2016-05-11 11:27:12 创建 陶俊代码生成器<br>
 * 
 * @author 陶俊代码生成器
 * @version 1.00
 */
public class SignedDto extends Signed {
	private static final long serialVersionUID = 1L;
	/**
	 * 需要正序字段名
	 */
	private List<String> asc;
	/**
	 * 需要逆序字段名
	 */
	private List<String> desc;
	/**
	 * 排序SQL
	 */
	private String orders;

	// 客户姓名
	private String customerName;
	// 经办电话
	private String customerPhone;

	private String roomName;
	private String roomCode;
	private String roomStatus;
	private String houseTypeName;
	private String userName;
	private String combinedName;
	private BigDecimal totalRealAmount;
	// 搜索条件
	private String houseNum;
	private String m_auditStatus;
	private String m_businessStatus;
	private String propertyType;
	private String agentName;

	private String taskUserName;
	private Date smTartTime;
	private Date ckEndTime;

	private BigDecimal innerArea;
	private BigDecimal buildingArea;
	private BigDecimal measuredArea;
	private BigDecimal makeBalance;
	private String mAuditStatus;
	private Date oppTime;
	// 已收金额
	private String hrrReceived;
	
	private String isExport; //是否导入

	private String memberName;
	private String documentType;
	private String documentNumber;
	private String dtype;
	private String mobile;

	private String codeName;


	private int shoufu;

	private String shoufuStr; //是否首付分期

	public String getShoufuStr() {
		return shoufuStr;
	}

	public void setShoufuStr(String shoufuStr) {
		this.shoufuStr = shoufuStr;
	}

	public int getShoufu() {
		return shoufu;
	}

	public void setShoufu(int shoufu) {
		this.shoufu = shoufu;
	}

	public String getCodeName() {
		return codeName;
	}

	public void setCodeName(String codeName) {
		this.codeName = codeName;
	}

	//换房原因
	private String signedChangeHouseRemark;
	
	//查询是否有装修款
	private String isDecoration;
	
	//合同总金额
	private BigDecimal totalSignedAmount;


	private String projectType; //项目类型

	private String peDocumentNumber;

	private String peContactAddress;//联系地址

	private String signDateStr;

	private String handoverDateStr;

	private String didTimeStr;


	private String attributionDateStr;

	private String premisesSecName;

	private String shoufuAmount;//首付金额

	private String yinhangAmount;//银行按揭

	public String getShoufuAmount() {
		return shoufuAmount;
	}

	public void setShoufuAmount(String shoufuAmount) {
		this.shoufuAmount = shoufuAmount;
	}

	public String getYinhangAmount() {
		return yinhangAmount;
	}

	public void setYinhangAmount(String yinhangAmount) {
		this.yinhangAmount = yinhangAmount;
	}

	public String getPremisesSecName() {
		return premisesSecName;
	}

	public void setPremisesSecName(String premisesSecName) {
		this.premisesSecName = premisesSecName;
	}

	public String getAttributionDateStr() {
		return attributionDateStr;
	}

	public void setAttributionDateStr(String attributionDateStr) {
		this.attributionDateStr = attributionDateStr;
	}

	public String getDidTimeStr() {
		return didTimeStr;
	}

	public void setDidTimeStr(String didTimeStr) {
		this.didTimeStr = didTimeStr;
	}

	public String getHandoverDateStr() {
		return handoverDateStr;
	}

	public void setHandoverDateStr(String handoverDateStr) {
		this.handoverDateStr = handoverDateStr;
	}

	public String getSignDateStr() {
		return signDateStr;
	}

	public void setSignDateStr(String signDateStr) {
		this.signDateStr = signDateStr;
	}

	public String getPeContactAddress() {
		return peContactAddress;
	}

	public void setPeContactAddress(String peContactAddress) {
		this.peContactAddress = peContactAddress;
	}

	public String getPeDocumentNumber() {
		return peDocumentNumber;
	}

	public void setPeDocumentNumber(String peDocumentNumber) {
		this.peDocumentNumber = peDocumentNumber;
	}

	public String getProjectType() {
		return projectType;
	}

	public void setProjectType(String projectType) {
		this.projectType = projectType;
	}

	/**
	 * isExport.
	 *
	 * @return  the isExport
	 * @since   JDK 1.6
	 */
	public String getIsExport() {
		return isExport;
	}

	/**
	 * isExport.
	 *
	 * @param   isExport    the isExport to set
	 * @since   JDK 1.6
	 */
	public void setIsExport(String isExport) {
		this.isExport = isExport;
	}

	//房产信息
	//组团
	private String premisesId;
	//楼栋
	private String buildingId;
	//单元
	private String unitId;
	
	//逾期天数
	private String overdueDay;
	//是否逾期 条件字段
	private String isOverdue;
	
	//逾期未付款
	private BigDecimal overdueAmount;
	
	//未收款
	private BigDecimal receivables;
	
	//面积差
	private BigDecimal balanceArea;
	//面积补差后总价
	private BigDecimal measuredPrice;
	//面积补差比率
	private BigDecimal areaRatio;
	//导入时记录错误信息
	private String failMsg;
	//面积补差应收款时间
	private Date receivableDate;
	//面积补差经办日期
	private Date trusteesDate;
	//自定义查询条件
	private String sql;
	//是否只查询有效签约
	private String isStatusTrue;


	private Date strTime;
	private Date endTime;

	public Date getStrTime() {
		return strTime;
	}

	public void setStrTime(Date strTime) {
		this.strTime = strTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	/**
	 * 添加需要正序字段名
	 */
	public void addAsc(String col) {
		if (asc == null) {
			asc = new LinkedList<String>();
		}
		asc.add(col);
	}

	/**
	 * 清空需要正序字段名
	 */
	public void cleanAsc() {
		asc = null;
	}

	/**
	 * 添加需要逆序字段名
	 */
	public void addDesc(String col) {
		if (desc == null) {
			desc = new LinkedList<String>();
		}
		desc.add(col);
	}

	/**
	 * 清空需要逆序字段名
	 */
	public void cleanDesc() {
		desc = null;
	}

	/**
	 * 如果排序SQL为空根据需要正逆序的字段名拼接排序SQL
	 */
	public String getOrders() {
		StringBuilder orderStr = null;
		StringBuilder ascStr;
		StringBuilder descStr;
		if (orders == null) {
			if (asc != null) {
				ascStr = new StringBuilder();
				orderStr = new StringBuilder();
				String pex = "";
				for (String a : asc) {
					ascStr.append(pex + a);
					pex = ",";
				}
				orderStr.append(ascStr.toString() + " ASC");
			}
			if (desc != null) {
				descStr = new StringBuilder();
				String pex = "";
				for (String d : desc) {
					descStr.append(pex + d);
					pex = ",";
				}
				if (orderStr == null) {
					orderStr = new StringBuilder();
					orderStr.append(descStr.toString() + " DESC");
				} else {
					orderStr.append("," + descStr.toString() + " DESC");
				}
			}
			orders = orderStr != null ? orderStr.toString() : null;
		}

		return orders;
	}

	/**
	 * 设置排序SQL
	 */
	public void setOrders(String orders) {
		this.orders = orders;
	}

	private Date updateTimeBefore;
	private Date updateTimeAfter;
	private String didTimeBefore;
	private String didTimeAfter;
	private Date createTimeBefore;
	private Date createTimeAfter;
	private String checkDateBefore;
	private String checkDateAfter;
	private String createTimeBefore1;
	private String createTimeAfter1;

	public Date getUpdateTimeBefore() {
		return this.updateTimeBefore;
	}

	public void setUpdateTimeBefore(Date updateTimeBefore) {
		this.updateTimeBefore = updateTimeBefore;
	}

	public Date getUpdateTimeAfter() {
		return this.updateTimeAfter;
	}

	public void setUpdateTimeAfter(Date updateTimeAfter) {
		this.updateTimeAfter = updateTimeAfter;
	}

	public String getDidTimeBefore() {
		return this.didTimeBefore;
	}

	public void setDidTimeBefore(String didTimeBefore) {
		this.didTimeBefore = didTimeBefore;
	}

	public String getDidTimeAfter() {
		return this.didTimeAfter;
	}

	public void setDidTimeAfter(String didTimeAfter) {
		this.didTimeAfter = didTimeAfter;
	}

	public Date getCreateTimeBefore() {
		return this.createTimeBefore;
	}

	public void setCreateTimeBefore(Date createTimeBefore) {
		this.createTimeBefore = createTimeBefore;
	}

	public Date getCreateTimeAfter() {
		return this.createTimeAfter;
	}

	public void setCreateTimeAfter(Date createTimeAfter) {
		this.createTimeAfter = createTimeAfter;
	}

	public String getCheckDateBefore() {
		return checkDateBefore;
	}

	public void setCheckDateBefore(String checkDateBefore) {
		this.checkDateBefore = checkDateBefore;
	}

	public String getCheckDateAfter() {
		return checkDateAfter;
	}

	public void setCheckDateAfter(String checkDateAfter) {
		this.checkDateAfter = checkDateAfter;
	}

	public String getCreateTimeBefore1() {
		return createTimeBefore1;
	}

	public void setCreateTimeBefore1(String createTimeBefore1) {
		this.createTimeBefore1 = createTimeBefore1;
	}

	public String getCreateTimeAfter1() {
		return createTimeAfter1;
	}

	public void setCreateTimeAfter1(String createTimeAfter1) {
		this.createTimeAfter1 = createTimeAfter1;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getRoomName() {
		return roomName;
	}

	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}

	public String getRoomStatus() {
		return roomStatus;
	}

	public void setRoomStatus(String roomStatus) {
		this.roomStatus = roomStatus;
	}

	public String getHouseTypeName() {
		return houseTypeName;
	}

	public void setHouseTypeName(String houseTypeName) {
		this.houseTypeName = houseTypeName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getCombinedName() {
		return combinedName;
	}

	public void setCombinedName(String combinedName) {
		this.combinedName = combinedName;
	}

	public BigDecimal getTotalRealAmount() {
		return totalRealAmount;
	}

	public void setTotalRealAmount(BigDecimal totalRealAmount) {
		this.totalRealAmount = totalRealAmount;
	}

	public String getHouseNum() {
		return houseNum;
	}

	public void setHouseNum(String houseNum) {
		this.houseNum = houseNum;
	}

	public String getM_auditStatus() {
		return m_auditStatus;
	}

	public void setM_auditStatus(String m_auditStatus) {
		this.m_auditStatus = m_auditStatus;
	}

	public String getM_businessStatus() {
		return m_businessStatus;
	}

	public void setM_businessStatus(String m_businessStatus) {
		this.m_businessStatus = m_businessStatus;
	}

	public String getPropertyType() {
		return propertyType;
	}

	public void setPropertyType(String propertyType) {
		this.propertyType = propertyType;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getRoomCode() {
		return roomCode;
	}

	public void setRoomCode(String roomCode) {
		this.roomCode = roomCode;
	}

	public String getTaskUserName() {
		return taskUserName;
	}

	public void setTaskUserName(String taskUserName) {
		this.taskUserName = taskUserName;
	}

	public Date getSmTartTime() {
		return smTartTime;
	}

	public void setSmTartTime(Date smTartTime) {
		this.smTartTime = smTartTime;
	}

	public Date getCkEndTime() {
		return ckEndTime;
	}

	public void setCkEndTime(Date ckEndTime) {
		this.ckEndTime = ckEndTime;
	}

	public BigDecimal getInnerArea() {
		return innerArea;
	}

	public void setInnerArea(BigDecimal innerArea) {
		this.innerArea = innerArea;
	}

	public BigDecimal getBuildingArea() {
		return buildingArea;
	}

	public void setBuildingArea(BigDecimal buildingArea) {
		this.buildingArea = buildingArea;
	}

	public BigDecimal getMeasuredArea() {
		return measuredArea;
	}

	public void setMeasuredArea(BigDecimal measuredArea) {
		this.measuredArea = measuredArea;
	}

	public BigDecimal getMakeBalance() {
		return makeBalance;
	}

	public void setMakeBalance(BigDecimal makeBalance) {
		this.makeBalance = makeBalance;
	}

	public String getmAuditStatus() {
		return mAuditStatus;
	}

	public void setmAuditStatus(String mAuditStatus) {
		this.mAuditStatus = mAuditStatus;
	}

	public Date getOppTime() {
		return oppTime;
	}

	public void setOppTime(Date oppTime) {
		this.oppTime = oppTime;
	}

	public String getHrrReceived() {
		return hrrReceived;
	}

	public void setHrrReceived(String hrrReceived) {
		this.hrrReceived = hrrReceived;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public String getDocumentType() {
		return documentType;
	}

	public void setDocumentType(String documentType) {
		this.documentType = documentType;
	}

	public String getDocumentNumber() {
		return documentNumber;
	}

	public void setDocumentNumber(String documentNumber) {
		this.documentNumber = documentNumber;
	}

	public String getDtype() {
		return dtype;
	}

	public void setDtype(String dtype) {
		this.dtype = dtype;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPremisesId() {
		return premisesId;
	}

	public void setPremisesId(String premisesId) {
		this.premisesId = premisesId;
	}

	public String getBuildingId() {
		return buildingId;
	}

	public void setBuildingId(String buildingId) {
		this.buildingId = buildingId;
	}

	public String getUnitId() {
		return unitId;
	}

	public void setUnitId(String unitId) {
		this.unitId = unitId;
	}

	public String getOverdueDay() {
		return overdueDay;
	}

	public void setOverdueDay(String overdueDay) {
		this.overdueDay = overdueDay;
	}

	public String getIsOverdue() {
		return isOverdue;
	}

	public void setIsOverdue(String isOverdue) {
		this.isOverdue = isOverdue;
	}

	public BigDecimal getOverdueAmount() {
		return overdueAmount;
	}

	public void setOverdueAmount(BigDecimal overdueAmount) {
		this.overdueAmount = overdueAmount;
	}

	public BigDecimal getReceivables() {
		return receivables;
	}

	public void setReceivables(BigDecimal receivables) {
		this.receivables = receivables;
	}

	public BigDecimal getMeasuredPrice() {
		return measuredPrice;
	}

	public void setMeasuredPrice(BigDecimal measuredPrice) {
		this.measuredPrice = measuredPrice;
	}

	public BigDecimal getAreaRatio() {
		return areaRatio;
	}

	public void setAreaRatio(BigDecimal areaRatio) {
		this.areaRatio = areaRatio;
	}

	public BigDecimal getBalanceArea() {
		return balanceArea;
	}

	public void setBalanceArea(BigDecimal balanceArea) {
		this.balanceArea = balanceArea;
	}

	public String getFailMsg() {
		return failMsg;
	}

	public void setFailMsg(String failMsg) {
		this.failMsg = failMsg;
	}

	public Date getReceivableDate() {
		return receivableDate;
	}

	public void setReceivableDate(Date receivableDate) {
		this.receivableDate = receivableDate;
	}

	public Date getTrusteesDate() {
		return trusteesDate;
	}

	public void setTrusteesDate(Date trusteesDate) {
		this.trusteesDate = trusteesDate;
	}

	public String getSignedChangeHouseRemark() {
		return signedChangeHouseRemark;
	}

	public void setSignedChangeHouseRemark(String signedChangeHouseRemark) {
		this.signedChangeHouseRemark = signedChangeHouseRemark;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public String getIsStatusTrue() {
		return isStatusTrue;
	}

	public void setIsStatusTrue(String isStatusTrue) {
		this.isStatusTrue = isStatusTrue;
	}

	public String getIsDecoration() {
		return isDecoration;
	}

	public void setIsDecoration(String isDecoration) {
		this.isDecoration = isDecoration;
	}

	public BigDecimal getTotalSignedAmount() {
		return totalSignedAmount;
	}

	public void setTotalSignedAmount(BigDecimal totalSignedAmount) {
		this.totalSignedAmount = totalSignedAmount;
	}

	public String getCustomerPhone() {
		return customerPhone;
	}

	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}

}
